package com.itheima.service;

import com.itheima.domain.Book;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface BookService {

    // 增
    Boolean save(Book book);

    // 删
    Boolean delete(Integer id);

    // 改
    Boolean update(Book book);

    // 查
    List<Book> getAll();

    // 查一个
    Book getById(Integer id);





}
